package com.android.fastride.model.http.entity;

/**
 * 服务器统一的返回数据
 * Created by pengyuantao on 2017/9/26 9:59.
 */

public class ComResponse {

	//返回正常，没有发现任何的异常
	public static final int RESULT_OK = 101;

	/**
	 * header : {"code":101,"message":"请求成功"}
	 * body : {}
	 */

	private HeaderBean header;

	private String body;

	public HeaderBean getHeader () {
		return header;
	}

	public void setHeader (HeaderBean header) {
		this.header = header;
	}

	public String getBody () {
		return body;
	}

	public void setBody (String body) {
		this.body = body;
	}

	public static class HeaderBean {
		/**
		 * code : 101
		 * message : 请求成功
		 */

		private int code;
		private String message;

		public int getCode () {
			return code;
		}

		public void setCode (int code) {
			this.code = code;
		}

		public String getMessage () {
			return message;
		}

		public void setMessage (String message) {
			this.message = message;
		}

		@Override
		public String toString () {
			return "HeaderBean{" +
					"code=" + code +
					", message='" + message + '\'' +
					'}';
		}
	}

	@Override
	public String toString () {
		return "ComResponse{" +
				"header=" + header +
				", body='" + body + '\'' +
				'}';
	}
}
